<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <title>Bootstrap工具提示案例</title>
</head>

<body>
    <div class="container">
        <p class="muted" style="margin-bottom: 0;">
            欢迎来到
            <a href="#" id="mytooltip" data-toggle="tooltip" data-placement="left" title="www.jikexueyuan.com">极客</a>

        </p>
    </div>
    <script src="../js/jquery-1.12.4.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script>
        $('[data-toggle="tooltip"]').tooltip()

        $("#mytooltip").tooltip("show")
        $("#mytooltip").on("hidden.bs.tooltip", function(e) {
            alert("hello");
        })
    </script>
</body>

</html>